#include <iostream>
#include <string>
using namespace std;

int main()
{
    string Cstr;
    while(cin >> Cstr){
        string Javastr;
        for(int i = 0; i < Cstr.size(); ++i){
            if(Cstr[i] == '_') {
                Javastr.push_back((char)Cstr[++i]-32);
                continue;
            }
            Javastr.push_back(Cstr[i]);
        }
        cout << Javastr << endl;
    }
    return 0;
}